function new_setCookie(name,value)
 {
     var Days = 30;
     var exp  = new Date();
     exp.setTime(exp.getTime() + Days*24*60*60*1000);
     document.cookie = name + "="+ value+ ";expires=" + exp.toGMTString()+";path=/;domain=";
 }
function objchkstr(obj,reg){
		var reg = new RegExp(obj.attr(reg));
		var objValue = obj.attr("value");
		if(!reg.test(objValue)){
			return false;
		}else{
			return true;
		}
}

function confirmDelete(delUrl) {
	if (confirm("您确定要删除吗？")) {
	   window.location.href = delUrl;
	}
}
